import request from '@/common/utils/request.js'
import unLoginRequest from '@/common/utils/unloginRequest.js'
// 获取配置
// 1.是否显示名字，预约人数  isShow count
export function getConfig(){
	return unLoginRequest({
		url: '/power/config/config/getAll',
		method: 'get'
	})
}
// 2.获取openid(未登录状态下获取)
export function getOpenId(code){
	return unLoginRequest({
		url: '/power/account/login/getOpenId?code=' + code,
		method: 'get'
	})
}
// 3.获取week和配置
export function getWeekAndConfig(day){
	return request({
		url: '/power/config/config/week/getAll?day='+day,
		method: 'get'
	})
}